import { EntitySchema } from '@mikro-orm/core';

export class OfficeSpiderConfig {
  id!: string;
  key?: string;
  value?: string;
}

export const OfficeSpiderConfigSchema = new EntitySchema({
  class: OfficeSpiderConfig,
  properties: {
    id: { primary: true, type: 'string', columnType: 'bigint' },
    key: { type: 'string', length: 255, nullable: true },
    value: { type: 'string', length: 255, nullable: true },
  },
});
